export default function filter(state = 'all', action) {
  const { type, payload } = action
  if (type === 'FILTER_TODO') return payload
  return state
}
